From: Florian Müllner Date: Wed, 4 Oct 2017 16:10:35 +0000 (+0200) Subject: tests: Fix JS warning X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~14 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d439456048ac9f9a73ff66c0b214e661b98964db;p=gnome-shell.git tests: Fix JS warning --- diff --git a/tests/unit/jsParse.js b/tests/unit/jsParse.js index ed550c9b9..381484877 100644 --- a/tests/unit/jsParse.js +++ b/tests/unit/jsParse.js @@ -176,7 +176,7 @@ for (let i = 0; i < testsModifyScope.length; i++) { let matches = text.match(/(.*)\.(.*)/); if (matches) { - [expr, base, attrHead] = matches; + let [expr, base, attrHead] = matches; if (!JsParse.isUnsafeExpression(base)) { with (obj) {